package com.zhou.zhxy.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.sun.javafx.scene.control.behavior.PaginationBehavior;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.zhou.zhxy.mapper")
public class MyConfig {

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }

}
